﻿<Window xmlns:my="clr-namespace:EffectEd.HlslEditor;assembly=EffectEd.HlslEditor"  x:Class="EffectEd.ChooseTemplateWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="New effect file" Height="361" Width="510" WindowStartupLocation="CenterScreen">
    <DockPanel LastChildFill="True">
        <Label DockPanel.Dock="Top" Content="Choose a template for the new effect file:" />
        <DockPanel DockPanel.Dock="Bottom" Height="24" LastChildFill="False">
            <Button DockPanel.Dock="Right" Width="50" Margin="10,0,0,0" Content="Cancel" IsCancel="True" Click="Button_Click_1" />
            <Button Name="buttonOk" DockPanel.Dock="Right" Width="50" Content="OK" IsDefault="True" Click="Button_Click" IsEnabled="False" />
        </DockPanel>
        <GroupBox Header="Templates">
            <ListBox DockPanel.Dock="Left" Width="200" Name="listBoxTemplates" DisplayMemberPath="Item1" SelectedValuePath="Item2" SelectionChanged="listBoxTemplates_SelectionChanged" MouseDoubleClick="listBoxTemplates_MouseDoubleClick" />
        </GroupBox>
        <GroupBox Header="Preview" Margin="5,0,0,0">
            <my:HlslEdit Name="editPreview" />
        </GroupBox>
    </DockPanel>
</Window>
